//
//  CommonTools.swift
//  weiBo
//
//  Created by apple on 16/5/14.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit

//切换根视图的控制器的通知名
let SwitchRootVCNotification = "SwitchRootVCNotification"

//  点击删除表情按钮发送的通知名
let DidSelectedDeleteEmoticonButtonNotification = "DidSelectedDeleteEmoticonButtonNotification"

//自定义颜色
func RGB(red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat) -> UIColor {
    return UIColor(red: red, green: green, blue: blue, alpha: alpha)
}

//产生随机色
func RandomColor() -> UIColor {
    
    let red = random() % 256
    let green = random() % 256
    let blue = random() % 256
    let alpha : CGFloat = 1
    
    return RGB(CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: alpha)
}

